package website.digitalocean.chapter11;

/**
 * @author: longhc@citycloud.com.cn
 * @since: 2023/2/10 17:25
 * @version: 1.0
 */
public class DecoratorPatternTest {
    public static void main(String[] args) {
        SportsCar sportsCar = new SportsCar(new BasicCar());
        sportsCar.assemble();

        System.out.println();

        LuxuryCar luxuryCar = new LuxuryCar(new SportsCar(new BasicCar()));
        luxuryCar.assemble();
    }
}
